#! /usr/bin/perl -w

use strict;
use warnings;
use FindBin '$Bin';
use lib $Bin.'/../lib';

package Cantella::DJabberd::Schema;

use base qw/DBIx::Class::Schema::Loader/;
#__PACKAGE__->loader_options(constraint  => '^jabber_group.*');

package main;

my($dsn,$username,$password) = @ARGV;

DBIx::Class::Schema::Loader->dump_to_dir($Bin.'/lib');
Cantella::DJabberd::Schema->connection($dsn, $username, $password);
